import allure

from api.auth import AuthAPI


class TestMatchPic:

    # 前置处理
    def setup_method(self):
        self.auth_api = AuthAPI()

    @allure.title("人脸比对接口")
    def test01_error(self):
        data = {
            "picUrl1": "http://127.0.0.1:8848/test.png",
            "picUrl2": "http://127.0.0.1:8848/test.png",
            "merchantId": "00013243DEF34E17A24D6EBD287097D1",
            "serviceCode": "agent"
        }
        res = self.auth_api.matchPic(data=data)
        assert 500 == res.status_code
